package com.ericsson.springauth.service;

import com.ericsson.springauth.model.User;

import java.util.List;
import org.springframework.dao.DataAccessException;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;

/**
 * Created by IntelliJ IDEA.
 * User: lbonacina
 * Date: 25/07/11
 * Time: 15.59
 */
public interface UserService extends UserDetailsService {

    public List<User> findAll() ;
    
    /* metodo usato per la validazione dell'utente al login */
    public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException, DataAccessException;
    
    public User getLoggedUser() ;
}
